import 'element-plus/theme-chalk/dark/css-vars.css'

//animate
import 'animate.css/animate.min.css'

// baidu
import baiduMap from 'vue3-baidu-map-gl'

import { createApp } from 'vue'
import pinia from './stores'

import App from './App.vue'
import router from './router'

// 自定义指令
import { permissionDirectory } from '@/directive/permission'

const app = createApp(App)

app.use(baiduMap, {
    ak: 'maSWRCH67hXZa3Y7BMA51SupYDs7z2bN',
    plugins: ['Mapvgl', 'Mapvgl', 'Mapv', 'TrackAnimation']
})

app.directive('permission', permissionDirectory)

app.use(pinia)
app.use(router)

app.mount('#app')
